<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/page/core/common/commonvariable.jsp"%>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="<%=commonLib%>" />
<title>用户管理</title>
</head>
<body ng-app="modulePruviewModule" ng-controller="ModulePurviewController">	
<jsp:include page="<%=widgetHeader%>"/>

<div class="lay-wrap">
	<div class="lay-left col-xs-1">
			<jsp:include page="<%=widgetLeftBar%>"/>
	</div>
	<div>

</div>

<jsp:include page="<%=widgetAnRightBar%>">
	 <jsp:param name="module1" value="/WEB-INF/views/module/purview/module_purview_edit.jsp"/>
</jsp:include>

<div class="lay-main col-xs-11" >
<div class="panel panel-default">
	<div class="panel-heading">
		<div class="row">
       		<div class="col-xs-10">
       		    <div class="form-group com-title" >模块权限管理</div>
       		</div>
       	</div>
     </div>
	<div class="panel-heading">
		<div class="row">
				<div class="col-xs-12">
			<a href="javascript:void(0);" ng-click="goAdd();" class="btn btn-default com-margin-left30">新增</a>
			<!-- 	
				<button class="btn btn-xs btn-primary" onclick="edit();" id="editBtn">Edit</button>
				<button class="btn btn-xs btn-primary" onclick="del();" id="del">Delete</button>
				<input type="hidden" name="isLastMenu" id="isLastMenu" value="false"></input>
				<input type="hidden" name="moduleMenuId" id="moduleMenuId" ></input> -->
						
				</div>
		</div>
	</div>
	<div class="panel-body">
		<div class="row">
		
<!-- 左边选择模块  -->		
			<div class="col-md-3">
			 <form class="form-inline" role="form"   method="post" >
				<input type="hidden" ng-model="moduleInfoForm.moduleInfoId"  value=""/> 
				</form> 
			请选择模块：
				 <select id="modules" ng-model="selected" ng-change="changeModule()">
				 <option ng-repeat="x in modules" value="{{x.moduleInfoId}}">{{x.moduleName}}</option>
				</select> 
			
				<div class="widget-box">
					<div class="widget-header widget-header-flat">
						<h4 class="smaller">
							模块菜单
						</h4>
					</div>

					<div class="widget-body">
						<div class="widget-main">
							<div id="moduleMenuTree" class="ztree"></div>
						</div>
					</div>
				</div>


			</div>
			<!-- 右边模块权限 表格-->
			<div class="col-md-9">
			
							<table class="table">
					<thead>
						<tr>
							<th style="width: 4%;">序号</th>
							<th style="width: 12%;">权限编号</th>
							<th style="width: 12%;">权限名称</th>
							<th style="width: 12%;">模块权限国际化</th>
							<!-- <th style="width: 12%;">模块权限路径</th> -->
							<th style="width: 12%;">模块权限描述</th>
							<th style="width: 12%;">操作</th>
						</tr>
					</thead>
					<tbody>
						<tr ng-repeat="o in resultList">
							 <td ng-bind="$index + 1"></td>
							<td ng-bind="o.purCode"></td>
							<td ng-bind="o.purName"></td>
							<td ng-bind="o.purNameKey"></td>
							<!-- <td ng-bind="o.urlPath"></td> -->
							<td ng-bind="o.purDesc"></td>
							<td>
								<a href="javascript:void(0)" title="编辑" ng-click="goModify($index);" class="com-btn-icon glyphicon glyphicon-edit"></a>
								<a href="javascript:void(0)" title="删除" ng-click="showDelWin($index);" class="com-btn-icon glyphicon glyphicon-remove"></a>
							</td>
						</tr>
					</tbody>
				</table>
				<form class="form-inline" role="form"   method="post" >
				<input type="hidden" ng-model="moduleMenuForm.moduleMenuId"  value=""/> 
				<jsp:include page="<%=widgetAnPagition%>"></jsp:include>
				</form> 
			
			
			
			
			</div>
				
		</div>
	</div>
	</div>
</div>
<jsp:include page="<%=widgetFooter%>"/>
<!-- content end -->
</div>

<!-- 删除固定资产确认操作Modal -->
<div class="modal fade" id="confirm_del_asset_div" tabindex="-1" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="confirm_del_data_label">提示</h4>
      </div>
      <div class="modal-body">
          <span>您确定删除此数据吗？</span>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" data-dismiss="modal" class="btn btn-primary" ng-click="doDelAsset()">继续</button>
      </div>
    </div>
  </div>
</div>

<link href="<%=pagePath%>/thirdparty/zTree_v3-3.5.22/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=pagePath%>/thirdparty/zTree_v3-3.5.22/jquery.ztree.core.min.js"></script>

<script type="text/javascript" src="<%=pagePath%>/js/moudles/module/purview/module_purview.js"></script>

<script type="text/javascript" src="<%=pagePath%>/js/common/aninnerpagination.js"></script>
</body>
</html>

